package org.duiduo.controller;

import org.duiduo.api.req.LoginReq;
import org.duiduo.config.annotation.LogAop;
import org.duiduo.service.AuthService;
import org.noear.solon.annotation.*;

import java.util.Map;

/**
 * 登录注册控制层
 *
 * @author liangze
 * @date 2025/9/29 16:04
 */
@Controller
@Mapping
public class AuthController {

    @Inject
    private AuthService authService;

    @LogAop(title = "登录")
    @Post
    @Mapping("/login")
    public Map<String, Object> login(@Body LoginReq req) {
        return authService.login(req);
    }


}
